# Funk, Paul and Philips
# "Point Break: Using Machine Learning to Uncover a Critical Mass in Women’s Representation", Forthcoming at PSRM
#
#
# Last Updated: 7/19/21
# File runs all .R scripts and creates both .txt log files as well as figures
# ------------------------------------------------------------------------
rm(list = ls())
setwd("~/Dropbox/Kendall-Hannah-Andy/final-replication-june2021")

#
# main-analysis.R
sink("./main-analysis.R.txt")
source("main-analysis.R", echo = TRUE, max.deparse.length = 1e3)
sink()

# SI-leftgovt.R
sink("./SI-leftgovt.txt")
source("SI-leftgovt.R", echo = TRUE, max.deparse.length = 1e3)
sink()

# SI-noquota.R
sink("./SI-noquota.txt")
source("SI-noquota.R", echo = TRUE, max.deparse.length = 1e3)
sink()